package com.carey.yygh.order.service;

import com.carey.yygh.model.order.OrderInfo;
import com.carey.yygh.model.order.PaymentInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
* @author carey-
* @description 针对表【payment_info(支付信息表)】的数据库操作Service
* @createDate 2022-05-19 17:28:12
*/
public interface PaymentInfoService extends IService<PaymentInfo> {

    void savePaymentInfo(OrderInfo order, Integer status);

    void paySuccess(String out_trade_no, Map<String, String> resultMap);

    /**
     * 获取支付记录
     * @param orderId
     * @param paymentType
     * @return
     */
    PaymentInfo getPaymentInfo(Long orderId, Integer paymentType);

}
